# _author_=xiaowen
# _desc_=计算四个次大值

import random
# 循环5次生成5个随机数
numbers = [random.randint(-30,30) for _ in range(5)]
# 调用内置函数len获取列表长度
length_of_numbers = len(numbers)
max_ = max_n2 = numbers[0]
print(id(numbers[0]))
# 用for循环结构遍历数组中所有元素，
for number in numbers:
    if number > max_:
        max_ = number

print("numbers:{}最大值：{}".format(numbers,max_))

